package com.gitee.feizns.menu.boot;

import com.gitee.feizns.menu.intercetor.VerificationHandler;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author feizns
 * @since 2019/5/19 0019
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(MenuAutoConfigurationImportSelector.class)
public @interface EnablePermissionMenu {

    /**
     * 拦截注解
     * @return
     */
    Class<? extends Annotation> annotation();

    /**
     * 验证器
     * @return
     */
    Class<? extends VerificationHandler>[] handlerClass() default {};

}
